<div class="page-header">
                    <div class="icon">
                        <span class="ico-layout-7"></span>
                    </div>
                    <h1>Usuarios <small>Listado de usuarios</small></h1>
                </div>
<div class="row-fluid">
    <div class="span12">
    <div class="block">
                            <div class="head dblue">
                                <div class="icon"><span class="ico-layout-9"></span></div>
                                <h2>Tabla de Usuarios</h2>
                                <ul class="buttons">
                                    <li><a href="#" onClick="source('table_sort_pagination'); return false;"><div class="icon"><span class="ico-info"></span></div></a></li>
                                </ul>                                                        
                            </div>                
                                <div class="data-fluid">
                                    <table class="table fpTable lcnp" cellpadding="0" cellspacing="0" width="100%">
                                        <thead>
                                        <tr>
                                            <th>Nro</th>
                                            <th>Nombre</th>
                                            <th>Usuario</th>
                                            <th>Acciones</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <?php  $i = 0;?>
                                        <?php foreach($usuarios as $us):?>
                                            <tr>
                                            <?php $i++;?>
                                            <td><?php echo $i?></td>
                                            <td><?php echo $us['User']['nombre'];?></td>
                                            <td><?php echo $us['User']['username'];?></td>
                                            <td><a href="#bModal" role="button" class="btn" data-toggle="modal" onclick="$('#contenidoedit').load('<?php echo $this->Html->url(array('action' => 'ajaxedit/'.$us['User']['id']))?>');">Editar</a></td>
                                            </tr> 
                                        <?php endforeach;?> 
                                        </tbody>
                                    </table>                    
                                </div> 
                        </div> 
    </div>
</div>
<div id="bModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
                <h3 id="myModalLabel">Editar Datos de Usuario</h3>
            </div>
            <div class="modal-body">
                <div id="contenidoedit">
                </div>
            </div>
            
            <div class="modal-footer">
                <button class="btn btn-warning" data-dismiss="modal" aria-hidden="true">Save updates</button> 
                <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>            
            </div>
        </div>  